home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 1099 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.1 KB  |  49 lines

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: references and ellipsis
  5. Date: 15 Apr 1996 20:32:01 GMT
  6. Organization: GABI Software, Sarl.
  7. Sender: news@lts.sel.alcatel.de
  8. Approved: clamage@eng.sun.com (comp.std.c++)
  9. Message-ID: <KANZE.96Apr15211342@slsvgqt.lts.sel.alcatel.de>
  10. References: <4kop8j$ino@vishnu.jussieu.fr> <4kpd3v$2fb@engnews1.Eng.Sun.COM> <4kr1p3$67g@mulga.cs.mu.OZ.AU>
  11. NNTP-Posting-Host: taumet.eng.sun.com
  12. In-Reply-To: fjh@munta.cs.mu.OZ.AU's message of 14 Apr 1996 15:08:25 GMT
  13. Apparently-To: std-c++@ncar.ucar.edu
  14. Content-Length: 1073
  15. X-Lines: 24
  16. Originator: clamage@taumet
  17.  
  18. In article <4kr1p3$67g@mulga.cs.mu.OZ.AU> fjh@munta.cs.mu.OZ.AU (Fergus
  19. Henderson) writes:
  20.  
  21. |> clamage@Eng.Sun.COM (Steve Clamage) writes:
  22.  
  23. |> >According the draft standard, the results of using a reference
  24. |> >type as the last pararmeter before the ellipsis (...) are
  25. |> >undefined.  See section 18.7 "Other runtime support" [lib.support.runtime].
  26.  
  27. |> Is there any good reason why this has undefined behaviour rather than
  28. |> being ill-formed code?  Surely this should be very easy for implementations
  29. |> to detect and diagnose.
  30.  
  31. Historical reasons, no doubt.  Declare the last parameter a char in C,
  32. and you also get undefined behavior.
  33.  
  34. And it's surely no more difficult to diagnose a double underscore (and
  35. at least one compiler does), which is also `undefined behavior'.
  36. -- 
  37. James Kanze         Tel.: (+33) 88 14 49 00        email: kanze@gabi-soft.fr
  38. GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
  39. Conseils, Θtudes et rΘalisations en logiciel orientΘ objet --
  40.                 -- A la recherche d'une activitΘ dans une region francophone
  41.  
  42.  
  43.  
  44. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  45. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  46. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  47. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  48. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  49.